<!doctype html>
<html lang="en">
<head>
	<meta charset="ANSI" />
	<title>Oglasna deska FERI</title>
	<link rel="stylesheet" href="styles.css" type="text/css" media="screen" />
	<link rel="stylesheet" type="text/css" href="print.css" media="print" />
		<style type="text/css" media="screen">
			h1.fontface {font: 32px/38px 'MichromaRegular', Arial, sans-serif;letter-spacing: 0;}
			p.style1 {font: 18px/27px 'MichromaRegular', Arial, sans-serif;}
					
			@font-face {
			    font-family: 'MichromaRegular';
			    src: url('Michroma-webfont.eot');
			    src: url('Michroma-webfont.eot?#iefix') format('embedded-opentype'),
			         url('Michroma-webfont.woff') format('woff'),
			         url('Michroma-webfont.ttf') format('truetype'),
			         url('Michroma-webfont.svg#MichromaRegular') format('svg');
			    font-weight: normal;
			    font-style: normal;}
		</style>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
		<script type="text/javascript">

          function nalozi() {
              var xh = new XMLHttpRequest();
              xh.open("POST", "http://164.8.251.99:9793/services/cir2012/SiNf_FeriNews?wsdl", false);
              xh.onreadystatechange = function () {
                  if (xh.readyState == 4) {
                      var response = xh.responseText;	
                      var razcleni = new DOMParser();
                      var xml = razcleni.parseFromString(response, "application/xml");

                      var prestejVnose = xml.getElementsByTagName("obvestilo"); 
                      for (var i = 0; i < prestejVnose.length; i++) {
                      var link = xml.getElementsByTagName("obvestilo")[i].getAttribute("povezava"); 
                      var obvesti = xml.getElementsByTagName("obvestilo")[i].childNodes[0].nodeValue; 

                      document.getElementById("main").innerHTML += "<center><a href='" + link + "'>" + obvesti + "</center>";
                      }        document+="</div>";              

                  }
              }

              xh.setRequestHeader("SOAPAction", "feriNovice");
              xh.setRequestHeader("Content-Type", "text/xml");
              var xml = '<?xml version="1.0" encoding="utf-8"?>' +
                 '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
                                'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
                                'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
                   '<soap:Body> ' +
                     '<feriNovice xmlns="http://services.mashup.wso2.org/SiNf_FeriNews/"> ' +
                     '</feriNovice> ' +
                   '</soap:Body> ' +
                 '</soap:Envelope>';
              xh.send(xml);
          }
            document.addEventListener("deviceready", nalozi, false);

        </script>
	
</head>
	<body>
		<header>
			<div class="container1">
			    <!--start title-->
			    <h1 class="fontface" id="title">SKUPINA HTML5</h1>
				<!--end title-->
			</div>
		</header>
		<!--end header-->
		
	<nav>
		<div class="menu">
		    <ul>
		    <li><a href="index.html">Domov</a></li>
		    <li><a href="vreme.html">Vreme</a></li>
		    <li><a href="oglasna.html">Oglasna deska FERI</a></li>
		    <li><a href="forum.html">Forum FERI</a></li>
		    <li><a href="aips.html">Aips</a></li>
			<li><a href="novice_um.html">Novice UM</a></li>
			<li><a href="stuk.html">Stuk</a></li>
			<li><a href="soum.html">SOUM</a></li>
			<li><a href="zagovori.html">Zagovori diplom</a></li>
		    </ul>
		</div>
    </nav>
	
	<div id="wrapper"><!-- #wrapper -->
		<section id="main"><!-- #main content and sidebar area -->
			<aside id="sidebar1"><!-- sidebar1 -->
				<br><br><br>	
						<h3>Povezave </h3><br>
					<ul>
						<li><a href="http://www.feri.uni-mb.si/podrocje.aspx">FERI</a></li>
						<li><a href="http://moodle.informatika.uni-mb.si/login/index.php">Moodle</a></li>			
					</ul>
			</aside><!-- end of sidebar1 -->
       
			<section id="content"><!-- #content -->
				<div class="newsbox" >		 		
					<h2>Oglasna deska FERI</h2>
					</div>		
			</section></br></br></br></br></br></br></br></br></br></br></br>
			<script type="text/javascript">
				nalozi();
			</script>
		</section>
	</div>

</body>
</html>
